package index;

import java.util.Random;

public class test {
    public static void main(String[] args) {


        //拓展的东西
       //小网站:普通用户:普通的视频
       //会员:没有广告的视频 不一样的东西
       //A:普通用户,B:会员
        //father money car->son all things
       //A-/>B  B->A, B继承于A,A派生B,形成继承关系
        //JAVA是单继承  多层继承  C++   C#
        //Interface 多继承
        //面向对象三大特性:封装 继承 多态
        //回到寝室多写代码  少打亡者农药
        //在寝室很难受 女->emo左右情绪 ->study java
        //学习  迷茫 想的太多 做的太少->困惑
        //继承有两个特点:1.单根性:一个子类只能有一个直接父类
        //2.传递性:子类会继承于父类的成员

        //javaBean:
        //{
        // 1.成员变量

        // 2.成员方法
        //
        // 3.构造方法
        // }
       //必要不充分
        Student s1=new Student();
        int arr[]=new int[]{};


        String arrName[]=new String[]{"徐可"," 徐鑫华" ,"王云鹏", "段齐广", "宋俊杰" ,"李欣荣" ,"左炜晨",
                "肖教针" ,"黄盛鸿", "肖正", "周家祥" ,"刘宝林", "赵辉林", "李颖", "古芃", "刘慧婷", "黎杰" ,
                "王涵", "张义", "屈少雄", "邹景焕", "赵家骏", "李威", "甘乐涛", "王东欣", "梅思佳" ,"梁彭" ,
                "周自强", "王罗祥", "钟娇楠", "王子剑" ,"徐鹏鹏" ,"吴斌", "何文波", "郭灵", "肖语涵", "刘慧鑫",
                "万文斌" ,"黄勇龙"};
        Random readName=new Random();
        System.out.print("幸运的同学是:");
        System.out.print(arrName[readName.nextInt(0,38)]);
//        s1.study();
//        Teacher t1=new Teacher();
//        t1.teach();
//        Random rdf=new Random();
//        System.out.println(rdf.nextInt(1,38)+1);

        //java里面所有的类都(直接/间接)继承于Object
    }
}
